<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php echo $commander->getListCommandsPanel('s', ''); ?>
<fieldset class="edit_form">
	<?php if($siteAdmin->Sitemap->CurrentPage->getPageType() == 'article'): ?>
        <label for="Image"><?php echo ucfirst($txt->getWord('image')); ?></label>
        <?php echo $commander->getErrorField('Image'); ?>
        <?php echo $commander->getInfoField('Image'); ?>
        <?php if(is_object($siteAdmin->Sitemap->CurrentPage->getImageObject())): ?>
        <img src="<?php echo $siteAdmin->Sitemap->CurrentPage->ImageObject->getLink(600, 400); ?>" />&nbsp;&nbsp;
        <a onmousedown="jQuery('#ImageDelete').val(1);" onmouseup="jQuery('#edit_form').submit();"><img title="<?php echo ucfirst($txt->getWord('delete').' '.$txt->getWord('image')); ?>" class="icon command" src="<?php echo SYSICONS_URL; ?>delete_16.gif" /></a><br />
        <input type="hidden" id="ImageDelete" name="ImageDelete" value="0" /><br />
        <?php else:  ?>
        <input name="Image" class="medium" type="file" /><br />
        <?php endif;  ?>
    <?php endif; ?>
	<label for="Description"><?php echo ucfirst($txt->getWord('description')); ?></label>
    <?php echo $commander->getErrorField('Description'); ?>
    <?php echo $commander->getInfoField('Description'); ?>
    <textarea rows="4" class="txt large tinymce_mini" id="Description" name="Description"><?php echo $siteAdmin->Sitemap->CurrentPage->getDescription(); ?></textarea><span class="limit"></span><br />
    <label for="static_html" class="bold"><?php echo ucfirst($txt->getWord('static_content')); ?></label><br />
    <?php echo $commander->getErrorField('static_html'); ?>
    <?php echo $commander->getInfoField('static_html'); ?>
    <div class="a4">
    <textarea name="static_html" id="static_html" class="tinymce"><?php echo $siteAdmin->Sitemap->CurrentPage->getStaticHTML(); ?></textarea>
    </div><br />
    <select name="FormId">
    	<?php 
		echo '<option value="0" '.$txt->getIsSelectedHTML($siteAdmin->Sitemap->CurrentPage->getFormId(), 0) .'>'.ucfirst($txt->getWord('none')).'</option>';
		if($fc->getForms())
		{
			foreach($fc->getForms() as $form)
			{ echo '<option value="'.$form->getId().'" '.$txt->getIsSelectedHTML($siteAdmin->Sitemap->CurrentPage->getFormId(), $form->getId()) .'>'.$form->getTitle().'</option>'; }
		}
		?>
    </select>
</fieldset>